home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / X11 / xgas.z / xgas
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXGGGGAAAASSSS((((1111))))             XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 5555))))              XXXXGGGGAAAASSSS((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           xgas - animated simulation of an ideal gas
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           xxxxggggaaaassss [-option ...]
  13.  
  14.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.           _x_g_a_s is a physical simulation of an ideal gas in a heated
  16.           box.  Gas molecules move around the box with velocities
  17.           dependent on their temperature.  A chamber consisting of two
  18.           boxes contains the gas molecules; the temperature of each
  19.           box can be independently controlled by a scrollbar.  When
  20.           gas molecules collide with the walls, their temperature
  21.           approaches that of the box.
  22.  
  23.           Use mouse button 1 to create molecules one at a time at the
  24.           cursor position.  Use mouse button 2 to create the maximum
  25.           number of molecules at the cursor position.
  26.  
  27.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  28.           This is a toolkit program;
  29.                   all the usual toolkit options are available.
  30.  
  31.           ----ttttssss     Sets the timeStepSize resource.
  32.  
  33.           ----dddd      Sets the delay resource.
  34.  
  35.           ----rrrrbbbb     Sets the randomBounce resource.
  36.  
  37.           ----eeeeqqqq     Sets the equilibrium resource.
  38.  
  39.           ----mmmmmmmm     Sets the maxMolecules resource.
  40.  
  41.           ----ffffgggg     Sets the foreground.
  42.  
  43.           ----bbbbgggg     Sets the background.
  44.  
  45.      RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS
  46.           The _x_g_a_s program uses the following X resources:
  47.  
  48.           ttttiiiimmmmeeeeSSSStttteeeeppppSSSSiiiizzzzeeee
  49.                   Specifies the simulated time duration in
  50.                   microseconds for each cycle of computation.
  51.  
  52.           ddddeeeellllaaaayyyy   Specifies the real time interval between timestep
  53.                   computations.
  54.  
  55.           rrrraaaannnnddddoooommmmBBBBoooouuuunnnncccceeee
  56.                   In each wall collision, a molecule bounces
  57.                   elastically (angle of incidence = angle of
  58.                   reflection).  A component of randomness is added to
  59.                   this angle.  RandomBounce varies from 0.0 (no
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXGGGGAAAASSSS((((1111))))             XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 5555))))              XXXXGGGGAAAASSSS((((1111))))
  71.  
  72.  
  73.  
  74.                   randomness) to 1.0 (completely random angle of
  75.                   incidence).
  76.  
  77.           eeeeqqqquuuuiiiilllliiiibbbbrrrriiiiuuuummmm
  78.                   During each wall collision, a molecule's kinetic
  79.                   energy approaches that corresponding to the
  80.                   temperature of the wall.  If equilibrium is 1.0, the
  81.                   molecule reaches the wall temperature immediately.
  82.                   For values between 1.0 and 0.0, the molecule
  83.                   approaches the temperature of the wall more slowly.
  84.  
  85.           mmmmaaaaxxxxMMMMoooolllleeeeccccuuuulllleeeessss
  86.                   Specifies the maximum number of molecules in the
  87.                   simulation.
  88.  
  89.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  90.           X(1), xwd(1)
  91.  
  92.      BBBBUUUUGGGGSSSS
  93.           When the chamber is resized, molecules should be rearranged
  94.           appropriately.  Instead, the molecule arrays are
  95.           reinitialized.
  96.  
  97.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  98.           Copyright 1991, Massachusetts Institute of Technology.
  99.  
  100.      AAAAUUUUTTTTHHHHOOOORRRR
  101.           Larry Medwin
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.